package ko.util;

import android.graphics.Rect;
import android.graphics.RectF;

public class KRect extends RectF {
	public KRect(int i, int j, int width, int height) {
		super(i, j, width, height);
	}
	public KRect(float i, float j, float width, float height) {
		super(i, j, width, height);
	}
	public float x = 0;
	public float y = 0;
	
	public int widthInt(){
		return (int)this.width();
	}
	
	public int heightInt(){
		return (int)this.height();
	}
	
	public Rect getRect(){
		return new Rect((int)x,(int)y,(int)(x + this.right),(int)(y + this.bottom));
	}
	
	public RectF getRectF(){
		this.left += x;
		this.right += x;
		this.top += y;
		this.bottom += y;
		return this;
	}
}
